<%inherit file="../../dashboard/base.html" />
<%def name="content()">
<%! from django.shortcuts import reverse %>
% if not result:
    <h3 style="width: 40%;margin-top: 20px;margin: 0 auto">您还没有评分电影</h3>
% endif

% if result:
    <table style="width: 60%;margin: 0 auto;margin-top: 7%;border: 1px solid #cccccc">
    <thead>
    <th style="height: 30px;border: 1px solid #cccccc;text-align: center">Title</th>
    <th style="height: 30px;border: 1px solid #cccccc;text-align: center">Genres</th>
    <th style="height: 30px;border: 1px solid #cccccc;text-align: center">Rating</th>
    </thead>
    <tbody>
    % for a, b in zip(result, rating):
    <tr style="height: 60px;border: 1px solid #cccccc">
        <td style="height: 60px;border: 1px solid #cccccc">${a.title}</td>
        <td style="height: 60px;border: 1px solid #cccccc">${a.genres}</td>
        <td style="height: 60px;border: 1px solid #cccccc">${b.rating}</td>
    </tr>
    % endfor
    </tbody>
</table>
% endif

</%def>
